﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace monitor_server_2_WPF
{
    /// <summary>
    /// Логика взаимодействия для UnautorizedPage.xaml
    /// </summary>
    public partial class UnautorizedPage
    {
        private new const double FontSize = 20;
        private MainWindow.HidingDelegate _del;

        public UnautorizedPage()
        {
            InitializeComponent();
            Background = new SolidColorBrush(Res.LighBlack);
            InfoText1.Foreground = InfoText2.Foreground = new SolidColorBrush(Colors.White);
            InfoText1.FontSize = InfoText2.FontSize = FontSize;
            InfoText1.Content = "Для изменения параметров";
            InfoText2.Content = "необходимо пройти авторизацию.";
            ArrowImage.Source = Res.GetBitMapFromPng("green_arrow_down");
            ArrowImage.Width = 128;
            ArrowImage.Height = 128;
            ArrowImage.Stretch = Stretch.Uniform;
            //ArrowImage.Stretch = Stretch.None;
        }

        public UnautorizedPage GetControl(MainWindow.HidingDelegate d)
        {
            _del = d;
            return this;
        }
    }
}
